package com.lpc.dagger2test;

import android.app.Application;

import com.lpc.dagger2test.component.AppComponent;
import com.lpc.dagger2test.component.DaggerAppComponent;
import com.lpc.dagger2test.module.AppModule;

/**
 * 功能:
 * <p>
 * 描述:
 * <p>
 * Created by lipc0113 on 2018/7/27.
 */
public class MyApplication extends Application {

    private AppComponent appComponent;

    @Override
    public void onCreate() {
        super.onCreate();

        appComponent = DaggerAppComponent.builder().appModule(new AppModule(getApplicationContext()))
                .build();

    }

    public AppComponent getAppComponent() {
        return appComponent;
    }
}
